/*
* pps_bom
*/
package com.pitop.project.api;

import com.pitop.project.entity.ProjectStaff;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 参与项目的员工 api请求熔断器 熔断实现
 *
 * @author berton
 */
@Component
public class ProjectStaffFeignApiImpl implements ProjectStaffFeignApi {
    /**
     * 查询ProjectStaff一个详情信息
     *
     * @param id
     * @param projectCode 项目编码
     * @param accountCode 员工编码
     * @return ProjectStaff
     */
    @Override
    public ProjectStaff load(@RequestParam("id") Long id, @RequestParam("projectCode") String projectCode, @RequestParam("accountCode") String accountCode) {
        return new ProjectStaff();
    }


    /**
     * 根据条件id查询ProjectStaff一个详情信息
     *
     * @param id
     * @return ProjectStaff
     */
    @Override
    public ProjectStaff loadById(@RequestParam("id") Long id) {
        return new ProjectStaff();
    }

    /**
     * 根据条件projectCode查询ProjectStaff一个详情信息
     *
     * @param projectCode 项目编码
     * @return ProjectStaff
     */
    @Override
    public ProjectStaff loadByProjectCode(@RequestParam("projectCode") String projectCode) {
        return new ProjectStaff();
    }

    /**
     * 根据条件accountCode查询ProjectStaff一个详情信息
     *
     * @param accountCode 员工编码
     * @return ProjectStaff
     */
    @Override
    public ProjectStaff loadByAccountCode(@RequestParam("accountCode") String accountCode) {
        return new ProjectStaff();
    }


    /**
     * 查询ProjectStaff信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<ProjectStaff> list(@RequestBody ProjectStaff projectStaff, int curPage, int pageSize) {
        return new ArrayList();
    }

    /**
     * 查询ProjectStaff信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<ProjectStaff> listByPk(Long id, String projectCode, String accountCode, int curPage, int pageSize) {
        return new ArrayList();
    }

    @Override
    public Integer count(@RequestParam("id") Long id, @RequestParam("projectCode") String projectCode, @RequestParam("accountCode") String accountCode) {
        return 0;
    }

    @Override
    public Integer count(@RequestBody ProjectStaff projectStaff) {
        return 0;
    }

    /**
     * 创建ProjectStaff
     *
     * @return ProjectStaff
     */
    @Override
    public ProjectStaff build(@RequestBody ProjectStaff projectStaff) {
        return new ProjectStaff();
    }

    /**
     * 修改ProjectStaff
     *
     * @return ProjectStaff
     */
    @Override
    public ProjectStaff modify(@RequestBody ProjectStaff projectStaff) {
        return new ProjectStaff();
    }

    /**
     * 删除ProjectStaff
     */
    @Override
    public void delete(@RequestParam("id") Long id, @RequestParam("projectCode") String projectCode, @RequestParam("accountCode") String accountCode) {
        return;
    }
}
